<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<jsp:include page="/WEB-INF/jsp/common/_head.jsp"/>
<%@ include file="/WEB-INF/jsp/common/_includes.jsp" %>
<div class="ui grid">
    <div class="row">
        <div class="column">
            <div class="ui two column grid">
                <div class="three wide column">
                    <jsp:include page="/WEB-INF/jsp/common/_sidebar.jsp">
                        <jsp:param name="index" value="1901"/>
                    </jsp:include>
                </div>
                <div id="container" class="thirteen wide column">
                    <ol class="breadcrumb">
						<li><a href="/">后台管理</a></li>
						<li class="active">视频列表</li>
					</ol>
                    <ul class="nav nav-pills" role="tablist">
                        <li role="presentation" class="active"><a href="/video/add">上传视频</a></li>
                    </ul>
                    <table class="table table-hover">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>视频标题</th>
                            <th>视频路径</th>
<!--                             <th>缩略图</th> -->
                            <th>创建者</th>
                            <th>修改人</th>
                            <th>点击量</th>
                            <th>所属站点</th>
                            <th>上传类型</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${paginate.pageList }" var="video">
                            <tr>
                                <td>${video.id }</td>
                                <td>${video.title }</td>
                                <td>${video.videoUrl }</td>
<%--                                 <td>${video.imgUrl }</td> --%>
                                <td>${video.creator }</td>
                                <td>${video.updator }</td>
                                <td>${video.click }</td>
                                <td>
									<c:if test="${video.siteId=='1' }">财之道</c:if>
                                	<c:if test="${video.siteId=='2' }">中财讯</c:if>
								</td>
                                <td>
	                                <c:if test="${video.type==1 }">前端上传</c:if>
	                                <c:if test="${video.type==2 }">后台上传</c:if>
	                                <c:if test="${video.type==3 }">新三板视频</c:if>
                                </td>
                                <td>
                                    <a href="/video/edit/${video.id }" target="_self">编辑</a>
<!--                                     <a href="" onClick="return confirm('确实想删除吗？')">删除</a> -->
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="/WEB-INF/jsp/common/_foot.jsp"></jsp:include>
